The QuickTime VR Manager provides functions that you can use to get the VR world scene description atom container and to get and set a scene's current node.
You can use the QTVRGetVRWorld function to get the VR world atom container for a movie.
OSErr QTVRGetVRWorld (QTVRInstance qtvr, QTAtomContainer*vrWorld);
The QTVRGetVRWorld function returns, in the vrWorld parameter, a pointer to an atom container that contains general scene information about the QuickTime VR movie specified by the qtvr parameter, as well as a list of all the nodes in that movie. You can use the QuickTime atom functions (introduced in QuickTime version 2.1) to extract atoms from that container.
See the chapter "QuickTime VR Atom Containers" in this book for a description of the format of a VR world atom container and its associated atoms for a QuickTime VR movie.
The VR world atom container returned by QTVRGetVRWorld is a copy of the atom container maintained internally by the QuickTime VR Manager. You should dispose of the VR world atom container (by calling the QuickTime function QTDisposeAtomContainer ) when you're finished using it.
You can use the QTVRGoToNodeID function to set the current node of a movie.
OSErr QTVRGoToNodeID (QTVRInstance qtvr, UInt32nodeID);
The QTVRGoToNodeID function sets the current node in the QuickTime VR movie specified by the qtvr parameter to be the node that has the ID specified by the nodeID parameter.
The QuickTime VR Manager defines several constants for specific nodes. For example, you can set nodeID to kQTVRDefaultNode to set the current node to the default node in the scene. Similarly, you can set nodeID to kQTVRPreviousNode to return to the previous node. See "Node IDs" for a description of the available node ID constants.
You can use the QTVRGetCurrentNodeID function to get the current node of a movie.
UInt32 QTVRGetCurrentNodeID (QTVRInstance qtvr);
The QTVRGetCurrentNodeID function returns, as its function result, the ID of the current node of the QuickTime VR movie specified by the qtvr parameter.
Use QTVRGoToNodeID to set the current node ID.
You can use the QTVRGetNodeType function to get the type of a movie node.
OSType QTVRGetNodeType (QTVRInstance qtvr, UInt32nodeID);
The QTVRGetNodeType function returns, as its function result, the type of the node specified by the nodeID parameter in the QuickTime VR movie specified by the qtvr parameter. See "Node Types" for a description of the values that QTVRGetNodeType can return.
You can use the QTVRGetNodeInfo function to get the node information atom container that describes a node and all the hot spots in the node.
OSErr QTVRGetNodeInfo (
QTVRInstance qtvr,
UInt32nodeID,
QTAtomContainer*nodeInfo);
The QTVRGetNodeInfo function returns, in the nodeInfo parameter, a pointer to an atom container that contains information about the node specified by the nodeID parameter in the movie specified by the qtvr parameter. The atom container includes information about all the hot spots contained in that node. You can use the QuickTime atom functions (introduced in QuickTime version 2.1) to extract atoms from that container. You can also use those functions to access the hot spot atom list. All hot spot atoms are contained in the hot spot parent atom.
See the chapter "QuickTime VR Atom Containers" in this book for a description of the format of a node information atom container and its associated atoms for a node.
The node information atom container returned by QTVRGetNodeInfo is a copy of the atom container maintained internally by the QuickTime VR Manager. You should dispose of the node information atom container (by calling the QuickTime function QTDisposeAtomContainer ) when you're finished using it.
| Previous | Chapter Contents | Chapter Top | Next |